package com.happystudy.mapper;

import com.happpystudy.model.course.CourseJoinStudent;
import com.happpystudy.model.course.CourseJoinStudentKey;
import com.happpystudy.model.course.CourseKey;
import com.happpystudy.model.course.CourseTeacher;

import java.util.List;

public interface CourseJoinStudentMapper {
    int deleteByPrimaryKey(CourseJoinStudentKey key);

    int insert(CourseJoinStudent record);

    int insertSelective (CourseJoinStudent record) throws Exception;

    CourseJoinStudent selectByPrimaryKey(CourseJoinStudentKey key);

    int updateByPrimaryKeySelective(CourseJoinStudent record);

    int updateByPrimaryKey(CourseJoinStudent record);

    List<CourseTeacher> selectCourseTeachersByUserId(Integer userId);

    List<CourseJoinStudent> selectByCourseKey(CourseKey courseKey);
}